<div class="main_top">
	<ul class="pagenavi">
		<li><a href="/">首页</a></li>
		<li class="li2"><a href="/my/">我的主页</a></li>
		<li class="li2">个人信息</li>
	</ul>
</div>
<div class="clear"></div>
<div class="clear"></div>
<!--main top end -->
{{include file="mypage_left.tpl"}}
<div class="main_right">
	<h2>我的主页</h2>
	<div class="main_content">
		<div class="myinfo">
			<ul>
				<li>欢迎回来,<span>{{$userName}}</span></li>
			</ul>
		</div>
		<div class="pageinfo">
			<p rel="res"><a href="javascript:void(0);" title="点击查看详情" style="color:{{$res_color}}">您有{{$res_total}}条新回复</a></p>
			<ul style="display:none;" rel="res">
				{{foreach item=item key=key from=$rows}}
				<li><a href="/corporation/{{$item.cor_id}}/" target="_blank" rel="{{$item.id}}||{{$item.estimate_id}}">{{$item.content}}</a></li>
				{{/foreach}}
			</ul>
		</div>
	</div>
</div>
<!--main_right end -->
<div class="clear"></div>
</div>
<!--main end -->
<script type="text/javascript" src="/script/jquery.js"></script>
<script type="text/javascript" src="/script/common.js"></script>
<script>
	$(document).ready(function(){
		$(".pageinfo p").click(function(){
			var rel = $(this).attr('rel');
			$(".pageinfo ul[rel="+rel+"]").toggle();
		})
		$(".pageinfo ul li a").click(function(){
			var ids = $(this).attr('rel');
			$.ajax({
				type:"POST",
				url:"mypage.php",
				data:"cmd=ajaxchange&ids="+ids,
				success:function(msg){
					if(msg == "nofind"){
						return false;
					}else{
						var reArr = eval(msg);
					}
				}            
			 });
		})
		
	})
</script>